﻿namespace = advanced_education

advanced_education.1 = {
	type = character_event
	title = advanced_education.1.t
	desc = advanced_education.1.desc
	theme = learning
	override_background = {
		event_background = garden
	}
	right_portrait = {
		character = scope:recipient
		animation = personality_honorable
	}

	option = {
		name = advanced_education.1.a
		trigger_event = advanced_education.2
	}
	option = {
		name = advanced_education.1.b
		trigger_event = advanced_education.9
	}
	option = {
		name = advanced_education.1.c
		trigger_event = advanced_education.10
	}
	option = {
		name = advanced_education.1.d
		trigger_event = advanced_education.15
	}
	option = {
		name = advanced_education.1.e
		trigger_event = advanced_education.20
	}
	option = {
		name = advanced_education.1.f
		trigger_event = advanced_education.25
	}
	option = {
		name = advanced_education.1.x
	}
}

# ———————————————————————————————————— #
# ————————— Education traits ————————— #
# ———————————————————————————————————— #
advanced_education.2 = {
	type = character_event
	title = advanced_education.1.t
	desc = advanced_education.2.desc
	theme = learning_scholarship_focus
	left_portrait = {
		character = scope:recipient
		animation = personality_honorable
	}

	option = {
		name = advanced_education.2.a
		trigger_event = advanced_education.3
	}
	option = {
		name = advanced_education.2.b
		trigger_event = advanced_education.4
	}
	option = {
		name = advanced_education.2.c
		trigger_event = advanced_education.5
	}
	option = {
		name = advanced_education.2.d
		trigger_event = advanced_education.6
	}
	option = {
		name = advanced_education.2.e
		trigger_event = advanced_education.7
	}
	option = {
		name = advanced_education.2.f
		trigger_event = advanced_education.8
	}
	option = {
		name = advanced_education.2.g
		trigger_event = advanced_education.1
	}
}

advanced_education.3 = {
	type = character_event
	title = advanced_education.3.t
	desc = advanced_education.3.desc
	theme = intrigue
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:intrigue_teacher
		animation = spymaster
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_intrigue_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = intrigue_teacher
			}
		}
	}
	
	option = {
		name = advanced_education.3.a
		if = {
			limit = { NOT = { has_trait = education_intrigue_4 } }
			remove_short_term_gold = 100
			random_list = {
				25 = {
					trigger_event = {
						id = advanced_education.333
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.333.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.334
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.334.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.335
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.335.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.336
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.336.tooltip
				}
			}
		}
		else = {
			custom_tooltip = advanced_education_has_elusive_shadow_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:intrigue_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.3.b
		trigger_event = advanced_education.2
		hidden_effect = {
			scope:intrigue_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.333 = {
	type = character_event
	title = advanced_education.3.t
	desc = advanced_education.333.desc
	theme = intrigue
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:intrigue_teacher
		animation = spymaster
	}

	option = {
		name = advanced_education.333.a
		hidden_effect = {
			remove_trait = education_intrigue_1
			remove_trait = education_intrigue_2
			remove_trait = education_intrigue_3
			add_trait = education_intrigue_4
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:intrigue_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.334 = {
	type = character_event
	title = advanced_education.3.t
	desc = advanced_education.334.desc
	theme = intrigue
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:intrigue_teacher
		animation = spymaster
	}

	option = {
		name = advanced_education.334.a
		hidden_effect = {
			remove_trait = education_intrigue_1
			remove_trait = education_intrigue_2
			remove_trait = education_intrigue_3
			add_trait = education_intrigue_4
			add_intrigue_skill = 1
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:intrigue_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.335 = {
	type = character_event
	title = advanced_education.3.t
	desc = advanced_education.335.desc
	theme = intrigue
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:intrigue_teacher
		animation = spymaster
	}

	option = {
		name = advanced_education.335.a
		hidden_effect = {
			remove_trait = education_intrigue_1
			remove_trait = education_intrigue_2
			remove_trait = education_intrigue_3
			add_trait = education_intrigue_4
			add_intrigue_skill = 2
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
	
	after = {
		hidden_effect = {
			scope:intrigue_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.336 = {
	type = character_event
	title = advanced_education.3.t
	desc = advanced_education.336.desc
	theme = intrigue
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:intrigue_teacher
		animation = spymaster
	}

	option = {
		name = advanced_education.336.a
		hidden_effect = {
			remove_trait = education_intrigue_1
			remove_trait = education_intrigue_2
			remove_trait = education_intrigue_3
			add_trait = education_intrigue_4
			add_intrigue_skill = 3
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:intrigue_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.4 = {
	type = character_event
	title = advanced_education.4.t
	desc = advanced_education.4.desc
	theme = diplomacy
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:diplomacy_teacher
		animation = chancellor
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_diplomacy_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = diplomacy_teacher
			}
		}
	}
	
	option = {
		name = advanced_education.4.a
		if = {
			limit = { NOT = { has_trait = education_diplomacy_4 } }
			remove_short_term_gold = 100
			random_list = {
				25 = {
					trigger_event = {
						id = advanced_education.444
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.444.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.445
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.445.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.446
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.446.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.447
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.447.tooltip
				}
			}
		}
		else = {
			custom_tooltip = advanced_education_has_grey_eminence_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:diplomacy_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.4.b
		trigger_event = advanced_education.2
		hidden_effect = {
			scope:diplomacy_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.444 = {
	type = character_event
	title = advanced_education.4.t
	desc = advanced_education.444.desc
	theme = diplomacy
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:diplomacy_teacher
		animation = chancellor
	}

	option = {
		name = advanced_education.444.a
		hidden_effect = {
			remove_trait = education_diplomacy_1
			remove_trait = education_diplomacy_2
			remove_trait = education_diplomacy_3
			add_trait = education_diplomacy_4
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:diplomacy_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.445 = {
	type = character_event
	title = advanced_education.4.t
	desc = advanced_education.445.desc
	theme = diplomacy
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:diplomacy_teacher
		animation = chancellor
	}

	option = {
		name = advanced_education.445.a
		hidden_effect = {
			remove_trait = education_diplomacy_1
			remove_trait = education_diplomacy_2
			remove_trait = education_diplomacy_3
			add_trait = education_diplomacy_4
			add_diplomacy_skill = 1
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:diplomacy_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.446 = {
	type = character_event
	title = advanced_education.4.t
	desc = advanced_education.446.desc
	theme = diplomacy
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:diplomacy_teacher
		animation = chancellor
	}

	option = {
		name = advanced_education.446.a
		hidden_effect = {
			remove_trait = education_diplomacy_1
			remove_trait = education_diplomacy_2
			remove_trait = education_diplomacy_3
			add_trait = education_diplomacy_4
			add_diplomacy_skill = 2
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
	
	after = {
		hidden_effect = {
			scope:diplomacy_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.447 = {
	type = character_event
	title = advanced_education.4.t
	desc = advanced_education.447.desc
	theme = diplomacy
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:diplomacy_teacher
		animation = chancellor
	}

	option = {
		name = advanced_education.447.a
		hidden_effect = {
			remove_trait = education_diplomacy_1
			remove_trait = education_diplomacy_2
			remove_trait = education_diplomacy_3
			add_trait = education_diplomacy_4
			add_diplomacy_skill = 3
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:diplomacy_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.5 = {
	type = character_event
	title = advanced_education.5.t
	desc = advanced_education.5.desc
	theme = stewardship
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:stewardship_teacher
		animation = steward
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_stewardship_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = stewardship_teacher
			}
		}
	}
	
	option = {
		name = advanced_education.5.a
		if = {
			limit = { NOT = { has_trait = education_stewardship_4 } }
			remove_short_term_gold = 100
			random_list = {
				25 = {
					trigger_event = {
						id = advanced_education.555
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.555.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.556
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.556.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.557
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.557.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.558
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.558.tooltip
				}
			}
		}
		else = {
			custom_tooltip = advanced_education_has_midas_touched_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:stewardship_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.5.b
		trigger_event = advanced_education.2
		hidden_effect = {
			scope:stewardship_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.555 = {
	type = character_event
	title = advanced_education.5.t
	desc = advanced_education.555.desc
	theme = stewardship
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:stewardship_teacher
		animation = steward
	}

	option = {
		name = advanced_education.555.a
		hidden_effect = {
			remove_trait = education_stewardship_1
			remove_trait = education_stewardship_2
			remove_trait = education_stewardship_3
			add_trait = education_stewardship_4
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:stewardship_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.556 = {
	type = character_event
	title = advanced_education.5.t
	desc = advanced_education.556.desc
	theme = stewardship
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:stewardship_teacher
		animation = steward
	}

	option = {
		name = advanced_education.556.a
		hidden_effect = {
			remove_trait = education_stewardship_1
			remove_trait = education_stewardship_2
			remove_trait = education_stewardship_3
			add_trait = education_stewardship_4
			add_stewardship_skill = 1
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:stewardship_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.557 = {
	type = character_event
	title = advanced_education.5.t
	desc = advanced_education.557.desc
	theme = stewardship
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:stewardship_teacher
		animation = steward
	}

	option = {
		name = advanced_education.557.a
		hidden_effect = {
			remove_trait = education_stewardship_1
			remove_trait = education_stewardship_2
			remove_trait = education_stewardship_3
			add_trait = education_stewardship_4
			add_stewardship_skill = 2
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
	
	after = {
		hidden_effect = {
			scope:stewardship_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.558 = {
	type = character_event
	title = advanced_education.5.t
	desc = advanced_education.558.desc
	theme = stewardship
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:stewardship_teacher
		animation = steward
	}

	option = {
		name = advanced_education.558.a
		hidden_effect = {
			remove_trait = education_stewardship_1
			remove_trait = education_stewardship_2
			remove_trait = education_stewardship_3
			add_trait = education_stewardship_4
			add_stewardship_skill = 3
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:stewardship_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.6 = {
	type = character_event
	title = advanced_education.6.t
	desc = advanced_education.6.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:prowess_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_prowess_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = prowess_teacher
			}
		}
	}
	
	option = {
		name = advanced_education.6.a
		if = {
			limit = { NOT = { has_trait = education_martial_prowess_4 } }
			remove_short_term_gold = 100
			random_list = {
				25 = {
					trigger_event = {
						id = advanced_education.666
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.666.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.667
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.667.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.668
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.668.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.669
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.669.tooltip
				}
			}
		}
		else = {
			custom_tooltip = advanced_education_has_famous_champion_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:prowess_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.6.b
		trigger_event = advanced_education.2
		hidden_effect = {
			scope:prowess_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.666 = {
	type = character_event
	title = advanced_education.6.t
	desc = advanced_education.666.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:prowess_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.666.a
		hidden_effect = {
			remove_trait = education_martial_prowess_1
			remove_trait = education_martial_prowess_2
			remove_trait = education_martial_prowess_3
			add_trait = education_martial_prowess_4
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:prowess_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.667 = {
	type = character_event
	title = advanced_education.6.t
	desc = advanced_education.667.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:prowess_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.667.a
		hidden_effect = {
			remove_trait = education_martial_prowess_1
			remove_trait = education_martial_prowess_2
			remove_trait = education_martial_prowess_3
			add_trait = education_martial_prowess_4
			add_prowess_skill = 1
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:prowess_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.668 = {
	type = character_event
	title = advanced_education.6.t
	desc = advanced_education.668.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:prowess_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.668.a
		hidden_effect = {
			remove_trait = education_martial_prowess_1
			remove_trait = education_martial_prowess_2
			remove_trait = education_martial_prowess_3
			add_trait = education_martial_prowess_4
			add_prowess_skill = 2
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
	
	after = {
		hidden_effect = {
			scope:prowess_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.669 = {
	type = character_event
	title = advanced_education.6.t
	desc = advanced_education.669.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:prowess_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.669.a
		hidden_effect = {
			remove_trait = education_martial_prowess_1
			remove_trait = education_martial_prowess_2
			remove_trait = education_martial_prowess_3
			add_trait = education_martial_prowess_4
			add_prowess_skill = 3
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:prowess_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.7 = {
	type = character_event
	title = advanced_education.7.t
	desc = advanced_education.7.desc
	theme = martial
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:martial_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_martial_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = martial_teacher
			}
		}
	}
	
	option = {
		name = advanced_education.7.a
		if = {
			limit = { NOT = { has_trait = education_martial_4 } }
			remove_short_term_gold = 100
			random_list = {
				25 = {
					trigger_event = {
						id = advanced_education.777
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.777.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.778
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.778.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.779
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.779.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.780
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.780.tooltip
				}
			}
		}
		else = {
			custom_tooltip = advanced_education_has_brilliant_strategist_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:martial_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.7.b
		trigger_event = advanced_education.2
		hidden_effect = {
			scope:martial_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.777 = {
	type = character_event
	title = advanced_education.7.t
	desc = advanced_education.777.desc
	theme = martial
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:martial_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.777.a
		hidden_effect = {
			remove_trait = education_martial_1
			remove_trait = education_martial_2
			remove_trait = education_martial_3
			add_trait = education_martial_4
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:martial_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.778 = {
	type = character_event
	title = advanced_education.7.t
	desc = advanced_education.778.desc
	theme = martial
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:martial_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.778.a
		hidden_effect = {
			remove_trait = education_martial_1
			remove_trait = education_martial_2
			remove_trait = education_martial_3
			add_trait = education_martial_4
			add_martial_skill = 1
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:martial_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.779 = {
	type = character_event
	title = advanced_education.7.t
	desc = advanced_education.779.desc
	theme = martial
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:martial_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.779.a
		hidden_effect = {
			remove_trait = education_martial_1
			remove_trait = education_martial_2
			remove_trait = education_martial_3
			add_trait = education_martial_4
			add_martial_skill = 2
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
	
	after = {
		hidden_effect = {
			scope:martial_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.780 = {
	type = character_event
	title = advanced_education.7.t
	desc = advanced_education.780.desc
	theme = martial
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:martial_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.780.a
		hidden_effect = {
			remove_trait = education_martial_1
			remove_trait = education_martial_2
			remove_trait = education_martial_3
			add_trait = education_martial_4
			add_martial_skill = 3
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:martial_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.8 = {
	type = character_event
	title = advanced_education.8.t
	desc = advanced_education.8.desc
	theme = learning_scholarship_focus
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:learning_teacher
		animation = court_chaplain
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_learning_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = learning_teacher
			}
		}
	}
	
	option = {
		name = advanced_education.8.a
		if = {
			limit = { NOT = { has_trait = education_learning_4 } }
			remove_short_term_gold = 100
			random_list = {
				25 = {
					trigger_event = {
						id = advanced_education.888
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.888.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.889
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.889.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.890
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.890.tooltip
				}
				25 = {
					trigger_event = {
						id = advanced_education.891
						years = { 4 5 }
					}
					custom_tooltip = advanced_education.891.tooltip
				}
			}
		}
		else = {
			custom_tooltip = advanced_education_has_mastermind_philosopher_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:learning_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.8.b
		trigger_event = advanced_education.2
		hidden_effect = {
			scope:learning_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.888 = {
	type = character_event
	title = advanced_education.8.t
	desc = advanced_education.888.desc
	theme = learning_scholarship_focus
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:learning_teacher
		animation = court_chaplain
	}

	option = {
		name = advanced_education.888.a
		hidden_effect = {
			remove_trait = education_learning_1
			remove_trait = education_learning_2
			remove_trait = education_learning_3
			add_trait = education_learning_4
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:learning_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.889 = {
	type = character_event
	title = advanced_education.8.t
	desc = advanced_education.889.desc
	theme = learning_scholarship_focus
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:learning_teacher
		animation = court_chaplain
	}

	option = {
		name = advanced_education.889.a
		hidden_effect = {
			remove_trait = education_learning_1
			remove_trait = education_learning_2
			remove_trait = education_learning_3
			add_trait = education_learning_4
			add_learning_skill = 1
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:learning_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.890 = {
	type = character_event
	title = advanced_education.8.t
	desc = advanced_education.890.desc
	theme = learning_scholarship_focus
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:learning_teacher
		animation = court_chaplain
	}

	option = {
		name = advanced_education.890.a
		hidden_effect = {
			remove_trait = education_learning_1
			remove_trait = education_learning_2
			remove_trait = education_learning_3
			add_trait = education_learning_4
			add_learning_skill = 2
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
	
	after = {
		hidden_effect = {
			scope:learning_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.891 = {
	type = character_event
	title = advanced_education.8.t
	desc = advanced_education.891.desc
	theme = learning_scholarship_focus
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:learning_teacher
		animation = court_chaplain
	}

	option = {
		name = advanced_education.891.a
		hidden_effect = {
			remove_trait = education_learning_1
			remove_trait = education_learning_2
			remove_trait = education_learning_3
			add_trait = education_learning_4
			add_learning_skill = 3
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}

	after = {
		hidden_effect = {
			scope:learning_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

# ————————————————————————————————————— #
# —————————— Physical traits —————————— #
# ————————————————————————————————————— #
advanced_education.9 = {
	type = character_event
	title = advanced_education.1.t
	desc = advanced_education.9.desc
	theme = physical_health
	left_portrait = {
		character = scope:recipient
		animation = personality_bold
	}

	option = {
		name = advanced_education.9.a
		trigger_event = advanced_education.90
	}
	option = {
		name = advanced_education.9.b
		trigger_event = advanced_education.91
	}
	option = {
		name = advanced_education.9.c
		trigger_event = advanced_education.1
	}
}

advanced_education.90 = {
	type = character_event
	title = advanced_education.90.t
	desc = advanced_education.90.desc
	theme = physical_health
	left_portrait = {
		character = scope:recipient
		animation = personality_rational
	}

	option = {
		name = advanced_education.90.a
		if = {
			limit = { NOT = { has_trait = shrewd } }
			random_list = {
				50 = {
					trigger_event = {
						id = advanced_education.900
						years = 2
					}
					custom_tooltip = advanced_education.900.tooltip
				}
				50 = {
					trigger_event = {
						id = advanced_education.901
						years = 2
					}
					custom_tooltip = advanced_education.901.tooltip
				}
			}
		}
		else = {
			custom_tooltip = advanced_education_has_shrewd_tooltip
			trigger_event = advanced_education.1
		}
	}
	option = {
		name = advanced_education.90.b
		trigger_event = advanced_education.9
	}
}

advanced_education.900 = {
	type = character_event
	title = advanced_education.90.t
	desc = advanced_education.900.desc
	theme = physical_health
	left_portrait = {
		character = scope:recipient
		animation = personality_rational
	}

	option = {
		name = advanced_education.900.a
		hidden_effect = {
			add_trait = shrewd
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.901 = {
	type = character_event
	title = advanced_education.90.t
	desc = advanced_education.901.desc
	theme = physical_health
	left_portrait = {
		character = scope:recipient
		animation = personality_rational
	}

	option = {
		name = advanced_education.901.a
		hidden_effect = {
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.91 = {
	type = character_event
	title = advanced_education.91.t
	desc = advanced_education.91.desc
	theme = physical_health
	left_portrait = {
		character = scope:recipient
		animation = personality_bold
	}

	option = {
		name = advanced_education.91.a
		if = {
			limit = { NOT = { has_trait = strong } }
			trigger_event = {
				id = advanced_education.902
				years = 2
			}
		}
		else = {
			custom_tooltip = advanced_education_has_strong_tooltip
			trigger_event = advanced_education.1
		}
	}
	option = {
		name = advanced_education.91.b
		trigger_event = advanced_education.9
	}
}

advanced_education.902 = {
	type = character_event
	title = advanced_education.91.t
	desc = advanced_education.902.desc
	theme = physical_health
	left_portrait = {
		character = scope:recipient
		animation = personality_bold
	}

	option = {
		name = advanced_education.902.a
		hidden_effect = {
			add_trait = strong
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

# —————————————————————————————————————— #
# —————————— Commander traits —————————— #
# —————————————————————————————————————— #
advanced_education.10 = {
	type = character_event
	title = advanced_education.1.t
	desc = advanced_education.10.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}

	option = {
		name = advanced_education.10.a
		trigger_event = advanced_education.1000
	}
	option = {
		name = advanced_education.10.b
		trigger_event = advanced_education.1002
	}
	option = {
		name = advanced_education.10.c
		trigger_event = advanced_education.1004
	}
	option = {
		name = advanced_education.10.d
		trigger_event = advanced_education.1006
	}
	option = {
		name = advanced_education.10.e
		trigger_event = advanced_education.1008
	}
	option = {
		name = advanced_education.10.f
		trigger_event = advanced_education.1010
	}
	option = {
		name = advanced_education.10.1a
		trigger_event = advanced_education.11
	}
	option = {
		name = advanced_education.10.1b
		trigger_event = advanced_education.1
	}
}

advanced_education.11 = {
	type = character_event
	title = advanced_education.1.t
	desc = advanced_education.10.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	
	option = {
		name = advanced_education.10.g
		trigger_event = advanced_education.1012
	}
	option = {
		name = advanced_education.10.h
		trigger_event = advanced_education.1014
	}
	option = {
		name = advanced_education.10.i
		trigger_event = advanced_education.1016
	}
	option = {
		name = advanced_education.10.j
		trigger_event = advanced_education.1018
	}
	option = {
		name = advanced_education.10.k
		trigger_event = advanced_education.1020
	}
	option = {
		name = advanced_education.10.l
		trigger_event = advanced_education.1022
	}
	option = {
		name = advanced_education.10.2a
		trigger_event = advanced_education.12
	}
	option = {
		name = advanced_education.10.2b
		trigger_event = advanced_education.10
	}
}

advanced_education.12 = {
	type = character_event
	title = advanced_education.1.t
	desc = advanced_education.10.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	
	option = {
		name = advanced_education.10.m
		trigger_event = advanced_education.1024
	}
	option = {
		name = advanced_education.10.n
		trigger_event = advanced_education.1026
	}
	option = {
		name = advanced_education.10.o
		trigger_event = advanced_education.1028
	}
	option = {
		name = advanced_education.10.p
		trigger_event = advanced_education.1030
	}
	option = {
		name = advanced_education.10.3b
		trigger_event = advanced_education.11
	}
}

advanced_education.1000 = {
	type = character_event
	title = advanced_education.1000.t
	desc = advanced_education.1000.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1000.a
		if = {
			limit = { NOT = { has_trait = aggressive_attacker } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1001
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_aggressive_attacker_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1000.b
		trigger_event = advanced_education.10
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1001 = {
	type = character_event
	title = advanced_education.1000.t
	desc = advanced_education.1001.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1001.a
		hidden_effect = {
			add_trait = aggressive_attacker
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1002 = {
	type = character_event
	title = advanced_education.1002.t
	desc = advanced_education.1002.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1002.a
		if = {
			limit = { NOT = { has_trait = flexible_leader } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1003
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_flexible_leader_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1002.b
		trigger_event = advanced_education.10
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1003 = {
	type = character_event
	title = advanced_education.1002.t
	desc = advanced_education.1003.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1003.a
		hidden_effect = {
			add_trait = flexible_leader
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1004 = {
	type = character_event
	title = advanced_education.1004.t
	desc = advanced_education.1004.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1004.a
		if = {
			limit = { NOT = { has_trait = forder } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1005
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_forder_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1004.b
		trigger_event = advanced_education.10
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1005 = {
	type = character_event
	title = advanced_education.1004.t
	desc = advanced_education.1005.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1005.a
		hidden_effect = {
			add_trait = forder
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1006 = {
	type = character_event
	title = advanced_education.1006.t
	desc = advanced_education.1006.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1006.a
		if = {
			limit = { NOT = { has_trait = holy_warrior } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1007
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_holy_warrior_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1006.b
		trigger_event = advanced_education.10
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1007 = {
	type = character_event
	title = advanced_education.1006.t
	desc = advanced_education.1007.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1007.a
		hidden_effect = {
			add_trait = holy_warrior
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1008 = {
	type = character_event
	title = advanced_education.1008.t
	desc = advanced_education.1008.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1008.a
		if = {
			limit = { NOT = { has_trait = logistician } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1009
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_logistician_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1008.b
		trigger_event = advanced_education.10
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1009 = {
	type = character_event
	title = advanced_education.1008.t
	desc = advanced_education.1009.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1009.a
		hidden_effect = {
			add_trait = logistician
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1010 = {
	type = character_event
	title = advanced_education.1010.t
	desc = advanced_education.1010.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1010.a
		if = {
			limit = { NOT = { has_trait = military_engineer } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1011
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_military_engineer_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1010.b
		trigger_event = advanced_education.10
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1011 = {
	type = character_event
	title = advanced_education.1010.t
	desc = advanced_education.1011.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1011.a
		hidden_effect = {
			add_trait = military_engineer
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1012 = {
	type = character_event
	title = advanced_education.1012.t
	desc = advanced_education.1012.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1012.a
		if = {
			limit = { NOT = { has_trait = organizer } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1013
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_organizer_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1012.b
		trigger_event = advanced_education.11
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1013 = {
	type = character_event
	title = advanced_education.1012.t
	desc = advanced_education.1013.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1013.a
		hidden_effect = {
			add_trait = organizer
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1014 = {
	type = character_event
	title = advanced_education.1014.t
	desc = advanced_education.1014.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1014.a
		if = {
			limit = { NOT = { has_trait = reaver } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1015
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_reaver_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1014.b
		trigger_event = advanced_education.11
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1015 = {
	type = character_event
	title = advanced_education.1014.t
	desc = advanced_education.1015.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1015.a
		hidden_effect = {
			add_trait = reaver
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1016 = {
	type = character_event
	title = advanced_education.1016.t
	desc = advanced_education.1016.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1016.a
		if = {
			limit = { NOT = { has_trait = unyielding_defender } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1017
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_unyielding_defender_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1016.b
		trigger_event = advanced_education.11
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1017 = {
	type = character_event
	title = advanced_education.1016.t
	desc = advanced_education.1017.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1017.a
		hidden_effect = {
			add_trait = unyielding_defender
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1018 = {
	type = character_event
	title = advanced_education.1018.t
	desc = advanced_education.1018.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1018.a
		if = {
			limit = { NOT = { has_trait = cautious_leader } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1019
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_cautious_leader_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1018.b
		trigger_event = advanced_education.11
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1019 = {
	type = character_event
	title = advanced_education.1018.t
	desc = advanced_education.1019.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1019.a
		hidden_effect = {
			add_trait = cautious_leader
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1020 = {
	type = character_event
	title = advanced_education.1020.t
	desc = advanced_education.1020.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1020.a
		if = {
			limit = { NOT = { has_trait = reckless } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1021
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_reckless_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1020.b
		trigger_event = advanced_education.11
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1021 = {
	type = character_event
	title = advanced_education.1020.t
	desc = advanced_education.1021.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1021.a
		hidden_effect = {
			add_trait = reckless
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1022 = {
	type = character_event
	title = advanced_education.1022.t
	desc = advanced_education.1022.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1022.a
		if = {
			limit = { NOT = { has_trait = forest_fighter } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1023
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_forest_fighter_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1022.b
		trigger_event = advanced_education.11
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1023 = {
	type = character_event
	title = advanced_education.1022.t
	desc = advanced_education.1023.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1023.a
		hidden_effect = {
			add_trait = forest_fighter
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1024 = {
	type = character_event
	title = advanced_education.1024.t
	desc = advanced_education.1024.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1024.a
		if = {
			limit = { NOT = { has_trait = open_terrain_expert } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1025
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_open_terrain_expert_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1024.b
		trigger_event = advanced_education.12
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1025 = {
	type = character_event
	title = advanced_education.1024.t
	desc = advanced_education.1025.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1025.a
		hidden_effect = {
			add_trait = open_terrain_expert
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1026 = {
	type = character_event
	title = advanced_education.1026.t
	desc = advanced_education.1026.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1026.a
		if = {
			limit = { NOT = { has_trait = rough_terrain_expert } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1027
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_rough_terrain_expert_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1026.b
		trigger_event = advanced_education.12
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1027 = {
	type = character_event
	title = advanced_education.1026.t
	desc = advanced_education.1027.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1027.a
		hidden_effect = {
			add_trait = rough_terrain_expert
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1028 = {
	type = character_event
	title = advanced_education.1028.t
	desc = advanced_education.1028.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1028.a
		if = {
			limit = { NOT = { has_trait = desert_warrior } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1029
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_desert_warrior_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1028.b
		trigger_event = advanced_education.12
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1029 = {
	type = character_event
	title = advanced_education.1028.t
	desc = advanced_education.1029.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1029.a
		hidden_effect = {
			add_trait = desert_warrior
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1030 = {
	type = character_event
	title = advanced_education.1030.t
	desc = advanced_education.1030.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_commander_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = commander_teacher
			}
		}
	}

	option = {
		name = advanced_education.1030.a
		if = {
			limit = { NOT = { has_trait = jungle_stalker } }
			remove_short_term_gold = 50
			trigger_event = {
				id = advanced_education.1031
				years = 3
			}
		}
		else = {
			custom_tooltip = advanced_education_has_jungle_stalker_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:commander_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1030.b
		trigger_event = advanced_education.12
		hidden_effect = {
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1031 = {
	type = character_event
	title = advanced_education.1030.t
	desc = advanced_education.1031.desc
	theme = war
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:commander_teacher
		animation = marshal
	}

	option = {
		name = advanced_education.1031.a
		hidden_effect = {
			add_trait = jungle_stalker
			scope:commander_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

# ———————————————————————————————————————————— #
# ————————— Leveled lifestyle traits ————————— #
# ———————————————————————————————————————————— #
advanced_education.15 = {
	type = character_event
	title = advanced_education.1.t
	desc = advanced_education.15.desc
	theme = learning
	left_portrait = {
		character = scope:recipient
		animation = happiness
	}
	
	option = {
		name = advanced_education.15.a
		trigger_event = advanced_education.1050
	}
	option = {
		name = advanced_education.15.b
		trigger_event = advanced_education.1052
	}
	option = {
		name = advanced_education.15.c
		trigger_event = advanced_education.1054
	}
	option = {
		name = advanced_education.15.d
		trigger_event = advanced_education.1056
	}
	option = {
		name = advanced_education.15.e
		trigger_event = advanced_education.1058
	}
	option = {
		name = advanced_education.15.f
		trigger_event = advanced_education.1
	}
}

advanced_education.1050 = {
	type = character_event
	title = advanced_education.1050.t
	desc = advanced_education.1050.desc
	theme = hunting
	left_portrait = {
		character = scope:recipient
		animation = idle
	}

	immediate = {
		play_music_cue = "mx_cue_postive_effect"
	}

	option = {
		name = advanced_education.1050.a
		if = {
			limit = { NOT = { has_trait = hunter_3 } }
			trigger_event = {
				id = advanced_education.1051
				years = { 3 4 }
			}
		}
		else = {
			custom_tooltip = advanced_education_has_hunter_3_tooltip
			trigger_event = advanced_education.1
		}
	}
	option = {
		name = advanced_education.1050.b
		trigger_event = advanced_education.15
	}
}

advanced_education.1051 = {
	type = character_event
	title = advanced_education.1050.t
	desc = advanced_education.1051.desc
	theme = hunting
	left_portrait = {
		character = scope:recipient
		animation = personality_bold
	}

	option = {
		name = advanced_education.1051.a
		hidden_effect = {
			remove_trait = hunter_1
			remove_trait = hunter_2
			add_trait = hunter_3
		}
		add_stress = major_stress_impact_loss
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1052 = {
	type = character_event
	title = advanced_education.1052.t
	desc = advanced_education.1052.desc
	theme = learning_medicine_focus
	left_portrait = {
		character = scope:recipient
		animation = idle
	}

	immediate = {
		play_music_cue = "mx_cue_postive_effect"
	}

	option = {
		name = advanced_education.1052.a
		if = {
			limit = { NOT = { has_trait = mystic_3 } }
			trigger_event = {
				id = advanced_education.1053
				years = { 3 4 }
			}
		}
		else = {
			custom_tooltip = advanced_education_has_mystic_3_tooltip
			trigger_event = advanced_education.1
		}
	}
	option = {
		name = advanced_education.1052.b
		trigger_event = advanced_education.15
	}
}

advanced_education.1053 = {
	type = character_event
	title = advanced_education.1052.t
	desc = advanced_education.1053.desc
	theme = learning_medicine_focus
	left_portrait = {
		character = scope:recipient
		animation = personality_forgiving
	}

	option = {
		name = advanced_education.1053.a
		hidden_effect = {
			remove_trait = mystic_1
			remove_trait = mystic_2
			add_trait = mystic_3
		}
		add_stress = major_stress_impact_loss
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1054 = {
	type = character_event
	title = advanced_education.1054.t
	desc = advanced_education.1054.desc
	theme = party
	left_portrait = {
		character = scope:recipient
		animation = happiness
	}

	immediate = {
		play_music_cue = "mx_cue_postive_effect"
	}

	option = {
		name = advanced_education.1054.a
		if = {
			limit = { NOT = { has_trait = reveler_3 } }
			remove_short_term_gold = { 10 20 }
			trigger_event = {
				id = advanced_education.1055
				years = { 3 4 }
			}
		}
		else = {
			custom_tooltip = advanced_education_has_reveler_3_tooltip
			trigger_event = advanced_education.1
		}
	}
	option = {
		name = advanced_education.1054.b
		trigger_event = advanced_education.15
	}
}

advanced_education.1055 = {
	type = character_event
	title = advanced_education.1054.t
	desc = advanced_education.1055.desc
	theme = party
	left_portrait = {
		character = scope:recipient
		animation = flirtation
	}

	option = {
		name = advanced_education.1055.a
		hidden_effect = {
			remove_trait = reveler_1
			remove_trait = reveler_2
			add_trait = reveler_3
		}
		add_stress = major_stress_impact_loss
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1056 = {
	type = character_event
	title = advanced_education.1056.t
	desc = advanced_education.1056.desc
	theme = physical_health
	left_portrait = {
		character = scope:recipient
		animation = idle
	}

	immediate = {
		play_music_cue = "mx_cue_postive_effect"
	}

	option = {
		name = advanced_education.1056.a
		if = {
			limit = { NOT = { has_trait = physician_3 } }
			trigger_event = {
				id = advanced_education.1057
				years = { 3 4 }
			}
		}
		else = {
			custom_tooltip = advanced_education_has_physician_3_tooltip
			trigger_event = advanced_education.1
		}
	}
	option = {
		name = advanced_education.1056.b
		trigger_event = advanced_education.15
	}
}

advanced_education.1057 = {
	type = character_event
	title = advanced_education.1056.t
	desc = advanced_education.1057.desc
	theme = physical_health
	left_portrait = {
		character = scope:recipient
		animation = personality_compassionate
	}

	option = {
		name = advanced_education.1057.a
		hidden_effect = {
			remove_trait = physician_1
			remove_trait = physician_2
			add_trait = physician_3
		}
		add_stress = major_stress_impact_loss
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1058 = {
	type = character_event
	title = advanced_education.1058.t
	desc = advanced_education.1058.desc
	theme = martial
	left_portrait = {
		character = scope:recipient
		animation = idle
	}

	immediate = {
		play_music_cue = "mx_cue_postive_effect"
	}

	option = {
		name = advanced_education.1058.a
		if = {
			limit = { NOT = { has_trait = blademaster_3 } }
			trigger_event = {
				id = advanced_education.1059
				years = { 3 4 }
			}
		}
		else = {
			custom_tooltip = advanced_education_has_blademaster_3_tooltip
			trigger_event = advanced_education.1
		}
	}
	option = {
		name = advanced_education.1058.b
		trigger_event = advanced_education.15
	}
}

advanced_education.1059 = {
	type = character_event
	title = advanced_education.1058.t
	desc = advanced_education.1059.desc
	theme = martial
	left_portrait = {
		character = scope:recipient
		animation = marshal
	}

	option = {
		name = advanced_education.1059.a
		hidden_effect = {
			remove_trait = blademaster_1
			remove_trait = blademaster_2
			add_trait = blademaster_3
		}
		add_stress = major_stress_impact_loss
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

# ————————————————————————————————————————————— #
# ————————— Leveled congenital traits ————————— #
# ————————————————————————————————————————————— #
advanced_education.20 = {
	type = character_event
	title = advanced_education.1.t
	desc = advanced_education.20.desc
	theme = friendly
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	
	option = {
		name = advanced_education.20.a
		trigger_event = advanced_education.1100
	}
	option = {
		name = advanced_education.20.b
		trigger_event = advanced_education.1105
	}
	option = {
		name = advanced_education.20.c
		trigger_event = advanced_education.1110
	}
	option = {
		name = advanced_education.20.d
		trigger_event = advanced_education.1
	}
}

advanced_education.1100 = {
	type = character_event
	title = advanced_education.1100.t
	desc = advanced_education.1100.desc
	theme = love
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:very_beautiful_woman
		animation = flirtation_left
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_very_beautiful_woman
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = very_beautiful_woman
			}
		}
	}
	
	option = {
		name = advanced_education.1100.a
		if = {
			limit = { NOT = { has_trait = beauty_good_1 has_trait = beauty_good_2 has_trait = beauty_good_3 } }
			remove_short_term_gold = 100
			random_list = {
				34 = {
					trigger_event = {
						id = advanced_education.1101
						days = 1
					}
					custom_tooltip = advanced_education.1101.tooltip
				}
				33 = {
					trigger_event = {
						id = advanced_education.1102
						days = 1
					}
					custom_tooltip = advanced_education.1102.tooltip
				}
				33 = {
					trigger_event = {
						id = advanced_education.1103
						days = 1
					}
					custom_tooltip = advanced_education.1103.tooltip
				}
			}
		}
		else = {
			custom_tooltip = advanced_education_has_beauty_1_or_2_or_3_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:very_beautiful_woman = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1100.b
		trigger_event = advanced_education.20
		hidden_effect = {
			scope:very_beautiful_woman = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1101 = {
	type = character_event
	title = advanced_education.1100.t
	desc = advanced_education.1101.desc
	theme = love
	left_portrait = {
		character = scope:recipient
		animation = flirtation
	}
	right_portrait = {
		character = scope:very_beautiful_woman
		animation = flirtation_left
	}

	option = {
		name = advanced_education.1101.a
		hidden_effect = {
			add_trait = beauty_good_1
			scope:very_beautiful_woman = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1102 = {
	type = character_event
	title = advanced_education.1100.t
	desc = advanced_education.1102.desc
	theme = love
	left_portrait = {
		character = scope:recipient
		animation = flirtation
	}
	right_portrait = {
		character = scope:very_beautiful_woman
		animation = flirtation_left
	}

	option = {
		name = advanced_education.1102.a
		hidden_effect = {
			add_trait = beauty_good_2
			scope:very_beautiful_woman = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1103 = {
	type = character_event
	title = advanced_education.1100.t
	desc = advanced_education.1103.desc
	theme = love
	left_portrait = {
		character = scope:recipient
		animation = flirtation
	}
	right_portrait = {
		character = scope:very_beautiful_woman
		animation = flirtation_left
	}

	option = {
		name = advanced_education.1103.a
		hidden_effect = {
			add_trait = beauty_good_3
			scope:very_beautiful_woman = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1105 = {
	type = character_event
	title = advanced_education.1105.t
	desc = advanced_education.1105.desc
	theme = learning
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:very_smart_teacher
		animation = personality_rational
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_very_smart_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = very_smart_teacher
			}
		}
	}
	
	option = {
		name = advanced_education.1105.a
		if = {
			limit = { NOT = { has_trait = intellect_good_1 has_trait = intellect_good_2 has_trait = intellect_good_3 } }
			remove_short_term_gold = 100
			random_list = {
				34 = {
					trigger_event = {
						id = advanced_education.1106
						years = { 3 4 }
					}
					custom_tooltip = advanced_education.1106.tooltip
				}
				33 = {
					trigger_event = {
						id = advanced_education.1107
						years = { 3 4 }
					}
					custom_tooltip = advanced_education.1107.tooltip
				}
				33 = {
					trigger_event = {
						id = advanced_education.1108
						years = { 3 4 }
					}
					custom_tooltip = advanced_education.1108.tooltip
				}
			}
		}
		else = {
			custom_tooltip = advanced_education_has_intellect_1_or_2_or_3_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:very_smart_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1105.b
		trigger_event = advanced_education.20
		hidden_effect = {
			scope:very_smart_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1106 = {
	type = character_event
	title = advanced_education.1105.t
	desc = advanced_education.1106.desc
	theme = learning
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:very_smart_teacher
		animation = personality_rational
	}

	option = {
		name = advanced_education.1106.a
		hidden_effect = {
			add_trait = intellect_good_1
			scope:very_smart_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1107 = {
	type = character_event
	title = advanced_education.1105.t
	desc = advanced_education.1107.desc
	theme = learning
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:very_smart_teacher
		animation = personality_rational
	}

	option = {
		name = advanced_education.1107.a
		hidden_effect = {
			add_trait = intellect_good_2
			scope:very_smart_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1108 = {
	type = character_event
	title = advanced_education.1105.t
	desc = advanced_education.1108.desc
	theme = learning
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:very_smart_teacher
		animation = personality_rational
	}

	option = {
		name = advanced_education.1108.a
		hidden_effect = {
			add_trait = intellect_good_3
			scope:very_smart_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1110 = {
	type = character_event
	title = advanced_education.1110.t
	desc = advanced_education.1110.desc
	theme = dread
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	right_portrait = {
		character = scope:very_strong_teacher
		animation = personality_bold
	}
	
	immediate = {
		play_music_cue = "mx_cue_postive_effect"
		hidden_effect = {
			create_character = {
				#location = scope:activity.activity_province
				template = advanced_education_very_strong_teacher
				faith = root.faith
				culture = root.culture
				dynasty = none
				save_scope_as = very_strong_teacher
			}
		}
	}
	
	option = {
		name = advanced_education.1110.a
		if = {
			limit = { NOT = { has_trait = physique_good_1 has_trait = physique_good_2 has_trait = physique_good_3 } }
			remove_short_term_gold = 100
			random_list = {
				34 = {
					trigger_event = {
						id = advanced_education.1111
						years = { 3 4 }
					}
					custom_tooltip = advanced_education.1111.tooltip
				}
				33 = {
					trigger_event = {
						id = advanced_education.1112
						years = { 3 4 }
					}
					custom_tooltip = advanced_education.1112.tooltip
				}
				33 = {
					trigger_event = {
						id = advanced_education.1113
						years = { 3 4 }
					}
					custom_tooltip = advanced_education.1113.tooltip
				}
			}
		}
		else = {
			custom_tooltip = advanced_education_has_physique_1_or_2_or_3_tooltip
			trigger_event = advanced_education.1
			hidden_effect = {
				scope:very_strong_teacher = {
					death = { death_reason = death_disappearance }
				}
			}
		}
	}
	option = {
		name = advanced_education.1110.b
		trigger_event = advanced_education.20
		hidden_effect = {
			scope:very_strong_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
	}
}

advanced_education.1111 = {
	type = character_event
	title = advanced_education.1110.t
	desc = advanced_education.1111.desc
	theme = dread
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:very_strong_teacher
		animation = personality_bold
	}

	option = {
		name = advanced_education.1111.a
		hidden_effect = {
			add_trait = physique_good_1
			scope:very_strong_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1112 = {
	type = character_event
	title = advanced_education.1110.t
	desc = advanced_education.1112.desc
	theme = dread
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:very_strong_teacher
		animation = personality_bold
	}

	option = {
		name = advanced_education.1112.a
		hidden_effect = {
			add_trait = physique_good_2
			scope:very_strong_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1113 = {
	type = character_event
	title = advanced_education.1110.t
	desc = advanced_education.1113.desc
	theme = dread
	left_portrait = {
		character = scope:recipient
		animation = war_over_win
	}
	right_portrait = {
		character = scope:very_strong_teacher
		animation = personality_bold
	}

	option = {
		name = advanced_education.1113.a
		hidden_effect = {
			add_trait = physique_good_3
			scope:very_strong_teacher = {
				death = { death_reason = death_disappearance }
			}
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

# ———————————————————————————————— #
# ————————— Other traits ————————— #
# ———————————————————————————————— #
advanced_education.25 = {
	type = character_event
	title = advanced_education.1.t
	desc = advanced_education.25.desc
	theme = skull
	left_portrait = {
		character = scope:recipient
		animation = idle
	}
	
	option = {
		name = advanced_education.25.a
		trigger_event = advanced_education.1120
	}
	option = {
		name = advanced_education.25.b
		trigger_event = advanced_education.1122
	}
	option = {
		name = advanced_education.25.c
		trigger_event = advanced_education.1
	}
}

advanced_education.1120 = {
	type = character_event
	title = advanced_education.1120.t
	desc = advanced_education.1120.desc
	theme = hunting
	override_background = {
		event_background = terrain_activity
	}
	left_portrait = {
		character = scope:recipient
		animation = admiration
	}

	immediate = {
		play_music_cue = "mx_cue_postive_effect"
	}

	option = {
		name = advanced_education.1120.a
		if = {
			limit = { NOT = { has_trait = adventurer } }
			trigger_event = {
				id = advanced_education.1121
				years = { 1 2 }
			}
		}
		else = {
			custom_tooltip = advanced_education_has_adventurer_tooltip
			trigger_event = advanced_education.1
		}
	}
	option = {
		name = advanced_education.1120.b
		trigger_event = advanced_education.25
	}
}

advanced_education.1121 = {
	type = character_event
	title = advanced_education.1120.t
	desc = advanced_education.1121.desc
	theme = hunting
	override_background = {
		event_background = terrain_activity
	}
	left_portrait = {
		character = scope:recipient
		animation = admiration
	}

	option = {
		name = advanced_education.1121.a
		hidden_effect = {
			add_trait = adventurer
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}

advanced_education.1122 = {
	type = character_event
	title = advanced_education.1122.t
	desc = advanced_education.1122.desc
	theme = battle
	left_portrait = {
		character = scope:recipient
		animation = anger
	}

	immediate = {
		play_music_cue = "mx_cue_postive_effect"
	}

	option = {
		name = advanced_education.1122.a
		if = {
			limit = { NOT = { has_trait = berserker } }
			trigger_event = {
				id = advanced_education.1123
				years = { 1 2 }
			}
		}
		else = {
			custom_tooltip = advanced_education_has_berserker_tooltip
			trigger_event = advanced_education.1
		}
	}
	option = {
		name = advanced_education.1122.b
		trigger_event = advanced_education.25
	}
}

advanced_education.1123 = {
	type = character_event
	title = advanced_education.1122.t
	desc = advanced_education.1123.desc
	theme = battle
	left_portrait = {
		character = scope:recipient
		animation = rage
	}

	option = {
		name = advanced_education.1123.a
		hidden_effect = {
			add_trait = berserker
		}
		custom_tooltip = advanced_education_hidden_effect_tooltip
		trigger_event = advanced_education.1.x
	}
}